﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200139B RID: 5019
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeRogueScoreRewardScRsp : IMessage<TakeRogueScoreRewardScRsp>, IMessage, IEquatable<TakeRogueScoreRewardScRsp>, IDeepCloneable<TakeRogueScoreRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003F48 RID: 16200
		// (get) Token: 0x0600E0BD RID: 57533 RVA: 0x00258F0F File Offset: 0x0025710F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeRogueScoreRewardScRsp> Parser
		{
			get
			{
				return TakeRogueScoreRewardScRsp._parser;
			}
		}

		// Token: 0x17003F49 RID: 16201
		// (get) Token: 0x0600E0BE RID: 57534 RVA: 0x00258F16 File Offset: 0x00257116
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeRogueScoreRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003F4A RID: 16202
		// (get) Token: 0x0600E0BF RID: 57535 RVA: 0x00258F28 File Offset: 0x00257128
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeRogueScoreRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600E0C0 RID: 57536 RVA: 0x00258F2F File Offset: 0x0025712F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeRogueScoreRewardScRsp()
		{
		}

		// Token: 0x0600E0C1 RID: 57537 RVA: 0x00258F38 File Offset: 0x00257138
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeRogueScoreRewardScRsp(TakeRogueScoreRewardScRsp other) : this()
		{
			this.poolId_ = other.poolId_;
			this.retcode_ = other.retcode_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.rogueScoreRewardInfo_ = ((other.rogueScoreRewardInfo_ != null) ? other.rogueScoreRewardInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E0C2 RID: 57538 RVA: 0x00258FAC File Offset: 0x002571AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeRogueScoreRewardScRsp Clone()
		{
			return new TakeRogueScoreRewardScRsp(this);
		}

		// Token: 0x17003F4B RID: 16203
		// (get) Token: 0x0600E0C3 RID: 57539 RVA: 0x00258FB4 File Offset: 0x002571B4
		// (set) Token: 0x0600E0C4 RID: 57540 RVA: 0x00258FBC File Offset: 0x002571BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PoolId
		{
			get
			{
				return this.poolId_;
			}
			set
			{
				this.poolId_ = value;
			}
		}

		// Token: 0x17003F4C RID: 16204
		// (get) Token: 0x0600E0C5 RID: 57541 RVA: 0x00258FC5 File Offset: 0x002571C5
		// (set) Token: 0x0600E0C6 RID: 57542 RVA: 0x00258FCD File Offset: 0x002571CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003F4D RID: 16205
		// (get) Token: 0x0600E0C7 RID: 57543 RVA: 0x00258FD6 File Offset: 0x002571D6
		// (set) Token: 0x0600E0C8 RID: 57544 RVA: 0x00258FDE File Offset: 0x002571DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17003F4E RID: 16206
		// (get) Token: 0x0600E0C9 RID: 57545 RVA: 0x00258FE7 File Offset: 0x002571E7
		// (set) Token: 0x0600E0CA RID: 57546 RVA: 0x00258FEF File Offset: 0x002571EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueScoreRewardInfo RogueScoreRewardInfo
		{
			get
			{
				return this.rogueScoreRewardInfo_;
			}
			set
			{
				this.rogueScoreRewardInfo_ = value;
			}
		}

		// Token: 0x0600E0CB RID: 57547 RVA: 0x00258FF8 File Offset: 0x002571F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeRogueScoreRewardScRsp);
		}

		// Token: 0x0600E0CC RID: 57548 RVA: 0x00259008 File Offset: 0x00257208
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeRogueScoreRewardScRsp other)
		{
			return other != null && (other == this || (this.PoolId == other.PoolId && this.Retcode == other.Retcode && object.Equals(this.Reward, other.Reward) && object.Equals(this.RogueScoreRewardInfo, other.RogueScoreRewardInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E0CD RID: 57549 RVA: 0x0025907C File Offset: 0x0025727C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.PoolId != 0U)
			{
				num ^= this.PoolId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.rogueScoreRewardInfo_ != null)
			{
				num ^= this.RogueScoreRewardInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E0CE RID: 57550 RVA: 0x00259100 File Offset: 0x00257300
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E0CF RID: 57551 RVA: 0x00259108 File Offset: 0x00257308
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E0D0 RID: 57552 RVA: 0x00259114 File Offset: 0x00257314
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.reward_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.Reward);
			}
			if (this.rogueScoreRewardInfo_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.RogueScoreRewardInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this.PoolId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.PoolId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E0D1 RID: 57553 RVA: 0x002591A8 File Offset: 0x002573A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.PoolId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PoolId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.rogueScoreRewardInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueScoreRewardInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E0D2 RID: 57554 RVA: 0x00259230 File Offset: 0x00257430
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeRogueScoreRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.PoolId != 0U)
			{
				this.PoolId = other.PoolId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.rogueScoreRewardInfo_ != null)
			{
				if (this.rogueScoreRewardInfo_ == null)
				{
					this.RogueScoreRewardInfo = new RogueScoreRewardInfo();
				}
				this.RogueScoreRewardInfo.MergeFrom(other.RogueScoreRewardInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E0D3 RID: 57555 RVA: 0x002592D8 File Offset: 0x002574D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E0D4 RID: 57556 RVA: 0x002592E4 File Offset: 0x002574E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 90U)
				{
					if (num == 82U)
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
						continue;
					}
					if (num == 90U)
					{
						if (this.rogueScoreRewardInfo_ == null)
						{
							this.RogueScoreRewardInfo = new RogueScoreRewardInfo();
						}
						input.ReadMessage(this.RogueScoreRewardInfo);
						continue;
					}
				}
				else
				{
					if (num == 96U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.PoolId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040058FF RID: 22783
		private static readonly MessageParser<TakeRogueScoreRewardScRsp> _parser = new MessageParser<TakeRogueScoreRewardScRsp>(() => new TakeRogueScoreRewardScRsp());

		// Token: 0x04005900 RID: 22784
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005901 RID: 22785
		public const int PoolIdFieldNumber = 15;

		// Token: 0x04005902 RID: 22786
		private uint poolId_;

		// Token: 0x04005903 RID: 22787
		public const int RetcodeFieldNumber = 12;

		// Token: 0x04005904 RID: 22788
		private uint retcode_;

		// Token: 0x04005905 RID: 22789
		public const int RewardFieldNumber = 10;

		// Token: 0x04005906 RID: 22790
		private ItemList reward_;

		// Token: 0x04005907 RID: 22791
		public const int RogueScoreRewardInfoFieldNumber = 11;

		// Token: 0x04005908 RID: 22792
		private RogueScoreRewardInfo rogueScoreRewardInfo_;
	}
}
